package com.yunhe.java.Day13;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/8/7 0007.
 */
public class MapQTMap {
    public static void main(String[] args) {
       Map<String,Student> map= new HashMap<>();
       Student s1=new Student("洛");
        Student s2=new Student("洛");
        Student s3=new Student("洛");
        map.put("01",s1);
        map.put("02",s2);
        map.put("03",s3);
        Map<String,Student> map2= new HashMap<>();
        Student s4=new Student("霞");
        Student s5=new Student("霞");
        Student s6=new Student("霞");
        map2.put("04",s4);
        map2.put("05",s5);
        map2.put("06",s6);

        Map<String,Map<String,Student>> map3=new HashMap<>();
        map3.put("Java",map);
        map3.put("Ui",map2);
        for(Map.Entry<String,Map<String,Student>> e:map3.entrySet()){
           for(Map.Entry<String,Student> entry1:e.getValue().entrySet()){
               System.out.print(entry1.getKey()+":"+entry1.getValue().getName());
           }
        }

    }
}
